@keyframes ngdialog-fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes ngdialog-fadein {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

html.ngdialog-open,
body.ngdialog-open {
    overflow: hidden;
}

.ngdialog {
    box-sizing: border-box;
    position: absolute;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: $black8;

    * {
        box-sizing: inherit;

        &:before {
            box-sizing: inherit;
        }

        &:after {
            box-sizing: inherit;
        }
    }
}

.ngdialog.ngdialog-disabled-animation {
    animation: none !important;

    .ngdialog-overlay {
        animation: none !important;
    }

    .ngdialog-content {
        animation: none !important;
    }
}

.ngdialog-overlay {
    position: fixed;
    background: rgba(0, 0, 0, 0.4);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    animation: ngdialog-fadein 0.5s;
}

.ngdialog-no-overlay {
    pointer-events: none;
}

.ngdialog.ngdialog-closing {
    .ngdialog-overlay {
        -webkit-backface-visibility: hidden;
        animation: ngdialog-fadeout $speed;
    }

    .ngdialog-content {
        -webkit-backface-visibility: hidden;
        animation: ngdialog-fadeout $speed;
    }
}

.ngdialog-content {
    background: white;
    -webkit-backface-visibility: hidden;
    animation: ngdialog-fadein $speed;
    pointer-events: all;
}

.ngdialog-close {
    &:before {
        font-family: 'Helvetica', Arial, sans-serif;
        content: '\00D7';
        cursor: pointer;
    }
}